package com.liujg.future.model.entity;

import com.liujg.future.model.resp.PageVO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

@Document("hot_detail")
@AllArgsConstructor
@NoArgsConstructor
@Data
public class HotDetail {

    @Id
    private String id;
    /**
     * 活动标题
     */
    private String title;

    /**
     * 活动图片
     */
    private String bannerPicture;

    /**
     * 子类选项集合
     */
    private List<SubTypes> subTypes;

    /**
     * 活动路径
     */
    private String path;


    @Data
    public static class SubTypes {
        /**
         * 子类选项id
         */
        private String id;
        /**
         * 子类选项名称
         */
        private String title;
        private PageVO<HotDetailGoods> goodsItems;
    }
}
